package io.github.yotta.notice.sms.common;

import io.github.yotta.notice.common.dto.BaseNoticeRequest;
import io.github.yotta.notice.common.dto.NoticeType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Map;

/**
 * @author yotta
 * @date 2023/4/29 10:59
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SmsNoticeRequest extends BaseNoticeRequest {

    /**
     * 申请的签名
     */
    private String signName;

    /**
     * 模板编码
     */
    private String templateCode;

    /**
     * 模板中的参数
     */
    private Map<String, Object> templateParam;

    /**
     * 发送选项
     */
    private Map<String, Object> options;


    @Override
    public String noticeType() {
        return NoticeType.SMS.getCode();
    }

}
